package com.corpgovernment.organization.service;

import com.corpgovernment.common.base.JSONResult;
import com.corpgovernment.common.base.Page;
import com.corpgovernment.organization.entity.db.MbImportExcelRecord;
import com.corpgovernment.organization.entity.db.MbImportExcelRecordDetailLog;
import com.corpgovernment.organization.model.org.vo.SearchMbImportExcelRecordRequestVo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface IMbImportExcelRecordService {
    Long insertRecord(MbImportExcelRecord mbImportExcelRecord) ;

    Boolean updateRecord(MbImportExcelRecord mbImportExcelRecord);
    MbImportExcelRecord getRecordById(Long recordId);

    void batchInsertRecordDetailLog(List<MbImportExcelRecordDetailLog> mbImportExcelRecordDetailLogs) ;

    Long insertRecordDetailLog(MbImportExcelRecordDetailLog mbImportExcelRecordDetailLogs) ;

    JSONResult<Page> searchImportExcelRecordByPage(SearchMbImportExcelRecordRequestVo requestVo, String corpId);

    JSONResult<Page> searchImportExcelRecordDetailLogByPage(Integer pageNum, Integer pageSize, Long recordId);

    void downloadImportExcel(Long recordId, HttpServletResponse response);

    void downloadImportExcelOrg(Long recordId, HttpServletResponse response);


}
